﻿using AutoMapper;
using gt.UserInfo.DomainModels.Entity;
using gt.UserInfo.DomainModels.ViewObject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace gt.UserInfo.Intrastructures.Mapper
{
    public class MapperProfiles : Profile
    {
        public MapperProfiles()
        {
            CreateMap<DateTime, string>().ConvertUsing<DateTimeTypeConverter>();
            CreateMap<int, bool>().ConvertUsing<IntTypeConverter>();

            CreateMap<UserEntity, UserVO>();

            CreateMap<UserVO, UserEntity>();
        }
    }
}
